package com.lm.rdf4j.controller;

import com.lm.rdf4j.service.FraudDetectionService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class FraudDetectionController {

    private final FraudDetectionService fraudDetectionService;

    public FraudDetectionController(FraudDetectionService fraudDetectionService) {
        this.fraudDetectionService = fraudDetectionService;
    }

    @GetMapping("/fraud-users")
    public List<String> getFraudUsers() {
        return fraudDetectionService.detectFraudulentUsers();
    }
}